package model

import (
	"context"

	"gorm.io/gorm"
)

type TagMap struct {
	gorm.Model
	BlogId    int    `gorm:"not null"`
	TagId     int    `gorm:"not null"`
	TagDetail string `gorm:"not null"`
}

func (m *defaultTagModel) CreateTag(ctx context.Context, tagMap *TagMap) error {
	return m.db.WithContext(ctx).Create(tagMap).Error
}
